{extend name='base'}
{block name='content'}

    <div class="cl pd-5 bg-1 bk-gray mt-20">
        <span class="l">
            <a href="{:url('admin/web/index');}"  class="btn btn-primary radius"> 官网案例列表</a>
        </span>
        <span class="l">
            <a href="{:url('admin/web/add');}"  class="btn btn-primary radius"> 添加官网案例</a>
        </span>

     </div>
    <table class="table table-border table-bordered table-bg">
        <thead>
            <tr class="text-c">
                <th width="40">ID</th>
                <th width="40">名称</th>
                <th width="100">图片</th>
                <th width="150">作者</th>
                <th width="150">时间</th>
                <th width="100">操作</th>
            </tr>
        </thead>
               {foreach name="data" item="vol"}
                    <tr class="text-c" style="height: 50px;height:100%;">
                        <td>{$vol.web_id}</td>
                        <td>{$vol.web_name}</td>
                        <td><img src="__PUBLIC__/uploads/{$vol.web_img}" width="200" height="200"></td>
                        <td>{$vol.web_author}</td>
                        <td>{$vol.web_in_date}</td>
                        <td>
                           <a href="{:url('admin/web/del',Array('id' => $vol.web_id));}">删除</a>
                           <a href="{:url('admin/web/edit',Array('id' => $vol.web_id));}">修改</a>
                        </td>
                    </tr>
                {/foreach}
    </table>

 {/block}
